#include "mainwindow.h"
#include "ui_mainwindow.h"


Config config;
Log mlog;


MainWindow::MainWindow(QWidget *parent) :
    QMainWindow(parent),
    ui(new Ui::MainWindow)
{

    ui->setupUi(this);
    this->setWindowTitle("GLDZ");

    mlog.init(ui);
    mlog.show("版本 " + config.VERSION);

    serialView.init(ui,&glParse);
    glParse.init(&serialView.serial);
    flashView.init(this,ui,&glParse);
    videoView.init(this,ui);


}

MainWindow::~MainWindow()
{
    delete ui;
}

void MainWindow::on_action_config_triggered()
{
    cw = new ConfigWindow;
    cw->show();
}




